
export interface QueryType {
  name?: string,
  id?: string,
  search?: string,
  userId?: string
}

export interface ArticleType {
  date?: string,
  content?: {
    rendered?: string
  },
  author?: string
} 

export interface UserInfoType {
  id?: string,
  token?: string,
  user_display_name?: string,
  user_email?: string,
  name?: string
}

export interface ListItemType {
  id?: string,
  content?: {
    rendered?: string
  },
  excerpt?: {
    rendered?: string
  },
  commentCount?: string,
  date?: string,
  imageUrl?: string
}
export interface CommentType {
  id?: string,
  post?: string,
  date?: string,
  content?: {
    rendered?: string
  },
  author_name?: string
}

export interface ErrorType {
  error?: number;
  errorMessage?: string;
  data: {
    code?: string,
    message?: string
  }
}